home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Libraries / tcl7.4b3 / doc / incr.n < prev    next >
Encoding:
Text File  |  1994-12-17  |  954 b   |  32 lines

  1. '\"
  2. '\" Copyright (c) 1993 The Regents of the University of California.
  3. '\" Copyright (c) 1994 Sun Microsystems, Inc.
  4. '\"
  5. '\" See the file "license.terms" for information on usage and redistribution
  6. '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  7. '\" 
  8. '\" @(#) incr.n 1.2 94/12/17 16:18:10
  9. '\" 
  10. .so man.macros
  11. .HS incr tcl
  12. .BS
  13. '\" Note:  do not modify the .SH NAME line immediately below!
  14. .SH NAME
  15. incr \- Increment the value of a variable
  16. .SH SYNOPSIS
  17. \fBincr \fIvarName \fR?\fIincrement\fR?
  18. .BE
  19.  
  20. .SH DESCRIPTION
  21. .PP
  22. Increments the value stored in the variable whose name is \fIvarName\fR.
  23. The value of the variable must be an integer.
  24. If \fIincrement\fR is supplied then its value (which must be an
  25. integer) is added to the value of variable \fIvarName\fR;  otherwise
  26. 1 is added to \fIvarName\fR.
  27. The new value is stored as a decimal string in variable \fIvarName\fR
  28. and also returned as result.
  29.  
  30. .SH KEYWORDS
  31. add, increment, variable, value
  32.